<template>
  <div>
    <h1>路由</h1>
    <!-- 二级路由 -->
    <router-link to="/chp102">嵌套路由</router-link> <br>
    <router-link to="/chp10/chp101">嵌套路由</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'chp-08',
  data () {
    return {
      str: '父类--的值'
    }
  },
  methods: {
    mychg (msg) {
      this.str = msg
    }
  }
}
</script>

<style lang="css" scoped>
</style>
